package com.shop.cereshop.app.utils;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;

/**
 * @description: 日期工具类
 * @author zdd
 * @date 2025/10/24 11:23
 * @version 1.0
 */
public class DateUtils {


    /**
     * 获取当前是周几
     *
     * @return 周几
     */
    public static String currentDayOfWeek() {
        return DateUtil.date().dayOfWeekEnum().toChinese("周");
    }

    /**
     * 获取日期是周几
     *
     * @return 周几
     */
    public static String dayOfWeek(DateTime date) {
        return date.dayOfWeekEnum().toChinese("周");
    }

}
